package controllers

import (
	"gdshop-back-end-go/client-api/app/request/OrderReq"
	"gdshop-back-end-go/common/response"
	"gdshop-back-end-go/service-order/OrderService"
	"github.com/gogf/gf/net/ghttp"
)

type OpenController struct {
	*BaseController
}

func (c *OpenController) SubmitQueue(r *ghttp.Request) *response.JsonResponse {
	var parames *OrderReq.SubmitQueue
	if err := r.Parse(&parames); err != nil {
		return response.FailByRequestMessage(r, err.Error())
	}
	return OrderService.SubmitQueue(r.GetCtx(), parames)
}
